package com.zyt.util;
public class MMLog {  
    public static String getInfo(){  
        String location="";  
        StackTraceElement[] stacks = Thread.currentThread().getStackTrace();   
        location = "类名："+stacks[2].getClassName() 
        		+ "#" + stacks[2].getLineNumber() 
        		+ "#" + stacks[2].getMethodName() ; 
        return location;  
    }  
    
    public static void log(String log) {
    	String location="";  
        StackTraceElement[] stacks = Thread.currentThread().getStackTrace();   
        location = "类名："+stacks[2].getClassName() 
        		+ "#" + stacks[2].getLineNumber() 
        		+ "#" + stacks[2].getMethodName() ; 
    	System.out.println(location + "\n" + log);
    }
}  